﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000EDF RID: 3807
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueGambleInfo : IMessage<RogueGambleInfo>, IMessage, IEquatable<RogueGambleInfo>, IDeepCloneable<RogueGambleInfo>, IBufferMessage
	{
		// Token: 0x17003053 RID: 12371
		// (get) Token: 0x0600AAA8 RID: 43688 RVA: 0x001CD5B7 File Offset: 0x001CB7B7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueGambleInfo> Parser
		{
			get
			{
				return RogueGambleInfo._parser;
			}
		}

		// Token: 0x17003054 RID: 12372
		// (get) Token: 0x0600AAA9 RID: 43689 RVA: 0x001CD5BE File Offset: 0x001CB7BE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueGambleInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003055 RID: 12373
		// (get) Token: 0x0600AAAA RID: 43690 RVA: 0x001CD5D0 File Offset: 0x001CB7D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueGambleInfo.Descriptor;
			}
		}

		// Token: 0x0600AAAB RID: 43691 RVA: 0x001CD5D7 File Offset: 0x001CB7D7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueGambleInfo()
		{
		}

		// Token: 0x0600AAAC RID: 43692 RVA: 0x001CD5EC File Offset: 0x001CB7EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueGambleInfo(RogueGambleInfo other) : this()
		{
			this.curTimes_ = other.curTimes_;
			this.curCostItem_ = ((other.curCostItem_ != null) ? other.curCostItem_.Clone() : null);
			this.mOOJJGAEBGC_ = other.mOOJJGAEBGC_;
			this.mazeGroupList_ = other.mazeGroupList_.Clone();
			this.maxGameTimes_ = other.maxGameTimes_;
			this.dGNPBMHAOGF_ = other.dGNPBMHAOGF_;
			this.kBDFLKCBFKA_ = other.kBDFLKCBFKA_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600AAAD RID: 43693 RVA: 0x001CD679 File Offset: 0x001CB879
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueGambleInfo Clone()
		{
			return new RogueGambleInfo(this);
		}

		// Token: 0x17003056 RID: 12374
		// (get) Token: 0x0600AAAE RID: 43694 RVA: 0x001CD681 File Offset: 0x001CB881
		// (set) Token: 0x0600AAAF RID: 43695 RVA: 0x001CD689 File Offset: 0x001CB889
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CurTimes
		{
			get
			{
				return this.curTimes_;
			}
			set
			{
				this.curTimes_ = value;
			}
		}

		// Token: 0x17003057 RID: 12375
		// (get) Token: 0x0600AAB0 RID: 43696 RVA: 0x001CD692 File Offset: 0x001CB892
		// (set) Token: 0x0600AAB1 RID: 43697 RVA: 0x001CD69A File Offset: 0x001CB89A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemCostData CurCostItem
		{
			get
			{
				return this.curCostItem_;
			}
			set
			{
				this.curCostItem_ = value;
			}
		}

		// Token: 0x17003058 RID: 12376
		// (get) Token: 0x0600AAB2 RID: 43698 RVA: 0x001CD6A3 File Offset: 0x001CB8A3
		// (set) Token: 0x0600AAB3 RID: 43699 RVA: 0x001CD6AB File Offset: 0x001CB8AB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool MOOJJGAEBGC
		{
			get
			{
				return this.mOOJJGAEBGC_;
			}
			set
			{
				this.mOOJJGAEBGC_ = value;
			}
		}

		// Token: 0x17003059 RID: 12377
		// (get) Token: 0x0600AAB4 RID: 43700 RVA: 0x001CD6B4 File Offset: 0x001CB8B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<RogueGambleMazeGroupInfo> MazeGroupList
		{
			get
			{
				return this.mazeGroupList_;
			}
		}

		// Token: 0x1700305A RID: 12378
		// (get) Token: 0x0600AAB5 RID: 43701 RVA: 0x001CD6BC File Offset: 0x001CB8BC
		// (set) Token: 0x0600AAB6 RID: 43702 RVA: 0x001CD6C4 File Offset: 0x001CB8C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MaxGameTimes
		{
			get
			{
				return this.maxGameTimes_;
			}
			set
			{
				this.maxGameTimes_ = value;
			}
		}

		// Token: 0x1700305B RID: 12379
		// (get) Token: 0x0600AAB7 RID: 43703 RVA: 0x001CD6CD File Offset: 0x001CB8CD
		// (set) Token: 0x0600AAB8 RID: 43704 RVA: 0x001CD6D5 File Offset: 0x001CB8D5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint DGNPBMHAOGF
		{
			get
			{
				return this.dGNPBMHAOGF_;
			}
			set
			{
				this.dGNPBMHAOGF_ = value;
			}
		}

		// Token: 0x1700305C RID: 12380
		// (get) Token: 0x0600AAB9 RID: 43705 RVA: 0x001CD6DE File Offset: 0x001CB8DE
		// (set) Token: 0x0600AABA RID: 43706 RVA: 0x001CD6E6 File Offset: 0x001CB8E6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint KBDFLKCBFKA
		{
			get
			{
				return this.kBDFLKCBFKA_;
			}
			set
			{
				this.kBDFLKCBFKA_ = value;
			}
		}

		// Token: 0x0600AABB RID: 43707 RVA: 0x001CD6EF File Offset: 0x001CB8EF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueGambleInfo);
		}

		// Token: 0x0600AABC RID: 43708 RVA: 0x001CD700 File Offset: 0x001CB900
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueGambleInfo other)
		{
			return other != null && (other == this || (this.CurTimes == other.CurTimes && object.Equals(this.CurCostItem, other.CurCostItem) && this.MOOJJGAEBGC == other.MOOJJGAEBGC && this.mazeGroupList_.Equals(other.mazeGroupList_) && this.MaxGameTimes == other.MaxGameTimes && this.DGNPBMHAOGF == other.DGNPBMHAOGF && this.KBDFLKCBFKA == other.KBDFLKCBFKA && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600AABD RID: 43709 RVA: 0x001CD7A4 File Offset: 0x001CB9A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.CurTimes != 0U)
			{
				num ^= this.CurTimes.GetHashCode();
			}
			if (this.curCostItem_ != null)
			{
				num ^= this.CurCostItem.GetHashCode();
			}
			if (this.MOOJJGAEBGC)
			{
				num ^= this.MOOJJGAEBGC.GetHashCode();
			}
			num ^= this.mazeGroupList_.GetHashCode();
			if (this.MaxGameTimes != 0U)
			{
				num ^= this.MaxGameTimes.GetHashCode();
			}
			if (this.DGNPBMHAOGF != 0U)
			{
				num ^= this.DGNPBMHAOGF.GetHashCode();
			}
			if (this.KBDFLKCBFKA != 0U)
			{
				num ^= this.KBDFLKCBFKA.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600AABE RID: 43710 RVA: 0x001CD86B File Offset: 0x001CBA6B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600AABF RID: 43711 RVA: 0x001CD873 File Offset: 0x001CBA73
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600AAC0 RID: 43712 RVA: 0x001CD87C File Offset: 0x001CBA7C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.mazeGroupList_.WriteTo(ref output, RogueGambleInfo._repeated_mazeGroupList_codec);
			if (this.MOOJJGAEBGC)
			{
				output.WriteRawTag(48);
				output.WriteBool(this.MOOJJGAEBGC);
			}
			if (this.CurTimes != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.CurTimes);
			}
			if (this.MaxGameTimes != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.MaxGameTimes);
			}
			if (this.KBDFLKCBFKA != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.KBDFLKCBFKA);
			}
			if (this.DGNPBMHAOGF != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.DGNPBMHAOGF);
			}
			if (this.curCostItem_ != null)
			{
				output.WriteRawTag(122);
				output.WriteMessage(this.CurCostItem);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600AAC1 RID: 43713 RVA: 0x001CD958 File Offset: 0x001CBB58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.CurTimes != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CurTimes);
			}
			if (this.curCostItem_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.CurCostItem);
			}
			if (this.MOOJJGAEBGC)
			{
				num += 2;
			}
			num += this.mazeGroupList_.CalculateSize(RogueGambleInfo._repeated_mazeGroupList_codec);
			if (this.MaxGameTimes != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MaxGameTimes);
			}
			if (this.DGNPBMHAOGF != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.DGNPBMHAOGF);
			}
			if (this.KBDFLKCBFKA != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.KBDFLKCBFKA);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600AAC2 RID: 43714 RVA: 0x001CDA18 File Offset: 0x001CBC18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueGambleInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.CurTimes != 0U)
			{
				this.CurTimes = other.CurTimes;
			}
			if (other.curCostItem_ != null)
			{
				if (this.curCostItem_ == null)
				{
					this.CurCostItem = new ItemCostData();
				}
				this.CurCostItem.MergeFrom(other.CurCostItem);
			}
			if (other.MOOJJGAEBGC)
			{
				this.MOOJJGAEBGC = other.MOOJJGAEBGC;
			}
			this.mazeGroupList_.Add(other.mazeGroupList_);
			if (other.MaxGameTimes != 0U)
			{
				this.MaxGameTimes = other.MaxGameTimes;
			}
			if (other.DGNPBMHAOGF != 0U)
			{
				this.DGNPBMHAOGF = other.DGNPBMHAOGF;
			}
			if (other.KBDFLKCBFKA != 0U)
			{
				this.KBDFLKCBFKA = other.KBDFLKCBFKA;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600AAC3 RID: 43715 RVA: 0x001CDAE1 File Offset: 0x001CBCE1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600AAC4 RID: 43716 RVA: 0x001CDAEC File Offset: 0x001CBCEC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 56U)
				{
					if (num == 10U)
					{
						this.mazeGroupList_.AddEntriesFrom(ref input, RogueGambleInfo._repeated_mazeGroupList_codec);
						continue;
					}
					if (num == 48U)
					{
						this.MOOJJGAEBGC = input.ReadBool();
						continue;
					}
					if (num == 56U)
					{
						this.CurTimes = input.ReadUInt32();
						continue;
					}
				}
				else if (num <= 96U)
				{
					if (num == 64U)
					{
						this.MaxGameTimes = input.ReadUInt32();
						continue;
					}
					if (num == 96U)
					{
						this.KBDFLKCBFKA = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 112U)
					{
						this.DGNPBMHAOGF = input.ReadUInt32();
						continue;
					}
					if (num == 122U)
					{
						if (this.curCostItem_ == null)
						{
							this.CurCostItem = new ItemCostData();
						}
						input.ReadMessage(this.CurCostItem);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04004554 RID: 17748
		private static readonly MessageParser<RogueGambleInfo> _parser = new MessageParser<RogueGambleInfo>(() => new RogueGambleInfo());

		// Token: 0x04004555 RID: 17749
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004556 RID: 17750
		public const int CurTimesFieldNumber = 7;

		// Token: 0x04004557 RID: 17751
		private uint curTimes_;

		// Token: 0x04004558 RID: 17752
		public const int CurCostItemFieldNumber = 15;

		// Token: 0x04004559 RID: 17753
		private ItemCostData curCostItem_;

		// Token: 0x0400455A RID: 17754
		public const int MOOJJGAEBGCFieldNumber = 6;

		// Token: 0x0400455B RID: 17755
		private bool mOOJJGAEBGC_;

		// Token: 0x0400455C RID: 17756
		public const int MazeGroupListFieldNumber = 1;

		// Token: 0x0400455D RID: 17757
		private static readonly FieldCodec<RogueGambleMazeGroupInfo> _repeated_mazeGroupList_codec = FieldCodec.ForMessage<RogueGambleMazeGroupInfo>(10U, RogueGambleMazeGroupInfo.Parser);

		// Token: 0x0400455E RID: 17758
		private readonly RepeatedField<RogueGambleMazeGroupInfo> mazeGroupList_ = new RepeatedField<RogueGambleMazeGroupInfo>();

		// Token: 0x0400455F RID: 17759
		public const int MaxGameTimesFieldNumber = 8;

		// Token: 0x04004560 RID: 17760
		private uint maxGameTimes_;

		// Token: 0x04004561 RID: 17761
		public const int DGNPBMHAOGFFieldNumber = 14;

		// Token: 0x04004562 RID: 17762
		private uint dGNPBMHAOGF_;

		// Token: 0x04004563 RID: 17763
		public const int KBDFLKCBFKAFieldNumber = 12;

		// Token: 0x04004564 RID: 17764
		private uint kBDFLKCBFKA_;
	}
}
